import java.io.UnsupportedEncodingException;
import java.net.*;



public class UrlEnDecoderTest {

	@SuppressWarnings("deprecation")
	public static void main(String[] args) throws UnsupportedEncodingException {
		String str, encoderStr, decoderStr = null;
		str="소설같은 자바- - www.jabook.org";
		encoderStr = URLEncoder.encode(str, "UTF-8");
		decoderStr = URLDecoder.decode(encoderStr);
		System.out.println("str: " + str);
		System.out.println("encoderStr: " + encoderStr);
		System.out.println("decoderStr: " + decoderStr);
	}

}
